<template>
  <div class="about">
    <h1>This is an about page</h1>
    <el-row>
      <el-button>默认按钮</el-button>
      <el-button type="primary">主要按钮</el-button>
      <el-button type="success">成功按钮</el-button>
      <el-button type="info">信息按钮</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row>
  </div>
</template>

<script>
import { login } from '@/api/login.js'
export default {
  data() {
    return {}
  },
  created() {
    let aa = {
      hospital_id: '11',
      hospital_logo: '',
      hospital_name: '测试中心医院',
      id: '57',
      name: '后台多中心管理用户',
      power: '1',
      relation_hospital_id: '',
      status: '1',
      type: '0',
      yhm: 'dzx_admin',
    }
    console.log(this.$store)
    this.$store.dispatch('login', aa)
    console.log(this.$store.state.user)
    this.login()
  },

  methods: {
    async login() {
      let user = await login({ password: '123456', yhm: 'dzx_admin' })
      console.log(user)
    },
  },
}
</script>

<style></style>
